<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="shortcut icon" type="image/x-icon" href="#{request.contextPath}/resources/images/favicon.png"/>
<title>Autor</title>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-49927407-1', 'ctssystem.com.br');
  ga('send', 'pageview');

</script>
</h:head>
<ui:decorate template="/Template/TemplateProfessor.xhtml">
<ui:define name="page">
<h:form enctype="multipart/form-data">
<div align="center">
<table style="width:900px" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td><center><h2>Cadastro de Autor</h2></center></td></tr>
<tr><td align="left"><h3>Detalhes do Autor</h3></td></tr>
<tr>
	<td align="left"><h:outputText value="Nome:"></h:outputText></td>
</tr>
<tr>
	<td align="left"><p:inputText id="txtNome" style="width:900px" value="#{autorController.newAutor.nome_autor}"/></td>
</tr>
</table>
<br />

<h:panelGroup id="pnlGrd">
<table border="0" style="width:900px" align="center">
	<tr><td align="right" style="width:900px" >
		<p:commandButton id="btnSalvar" value="Salvar" action="#{autorController.cadastrar}" rendered="#{autorController.showNewButton}" ajax="false"/>&nbsp;
		<p:commandButton id="btnAlterar" value="Alterar" action="#{autorController.alterar}" rendered="#{!autorController.showNewButton}" ajax="false"></p:commandButton>&nbsp;
	</td></tr>
</table>
</h:panelGroup>
</div>

</h:form>
</ui:define>
</ui:decorate>
</html>
